package com.example.lol;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

public class SettingActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.setting_main);

        ImageView SettingExit = findViewById(R.id.setting_exit);
        SettingExit.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(SettingActivity.this, MainActivity.class);
                startActivity(intent);
            }
        });

        Button ExitLogin = findViewById(R.id.setting_part3_btn1);
        ExitLogin.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(SettingActivity.this, LoginActivity.class);
                startActivity(intent);
            }
        });

        Button btn_zx = findViewById(R.id.setting_part3_btn2);
        btn_zx.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                Toast.makeText(SettingActivity.this, "亲亲，三思而后行哦 ~", Toast.LENGTH_SHORT).show();
//                Intent intent = new Intent();
//                intent.setClass(SettingActivity.this, LoginActivity.class);
//                startActivity(intent);
            }
        });

    }
}

